cssimagewin32: IMplement printing
authorBenjamin Otte <otte@gnome.org>
Fri, 26 Feb 2016 23:40:09 +0000 (00:40 +0100)
committerBenjamin Otte <otte@gnome.org>
Sat, 27 Feb 2016 02:59:20 +0000 (03:59 +0100)
Caveat: over() and margins() arent' printed, but they are soon gonna
be removed anyway.

gtk/gtkcssimagewin32.c

index 05ced5d9fdb469df8bed8ca27fcc48b57ec55b65..d03fababcd792ac49ea3bd0295b5d741c9aea4dd 100644 (file)
@@ -216,7 +216,11 @@ static void
 gtk_css_image_win32_print (GtkCssImage *image,
                            GString     *string)
 {
-  g_string_append (string, "none /* printing win32 theme components is not implemented */");
+  GtkCssImageWin32 *wimage = GTK_CSS_IMAGE_WIN32 (image);
+
+  g_string_append (string, "-gtk-win32-theme-part(");
+  gtk_win32_theme_print (wimage->theme, string);
+  g_string_append_printf (string, ", %d, %d)", wimage->part, wimage->state);
 }
 
 static void